package com.csj.weinfo.presenter;

import com.csj.weinfo.base.BasePresenter;
import com.csj.weinfo.bean.NaviBean;
import com.csj.weinfo.model.MainModel;
import com.csj.weinfo.net.ResultCallBack;
import com.csj.weinfo.view.MainView;
import com.hyphenate.easeui.domain.EaseUser;

import java.util.Map;

public class MainPresenter extends BasePresenter<MainView> {

    private MainModel mainModel;

    public void getContacts() {
        mainModel.getContacts(new ResultCallBack<Map<String, EaseUser>>() {
            @Override
            public void onSuccess(Map<String, EaseUser> map) {
//                mView.setContacts(map);
                mView.setContacts(map);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }

    @Override
    protected void initModel() {
        mainModel = new MainModel();
        addModel(mainModel);
    }
}
